/*
 *  Copyright 2025 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
@import (reference) '../../../styles/variables.less';

.table-container {
  height: initial !important;
  border-radius: 12px;
  background-color: @white;
  border: 1px solid @border-color-1;
  overflow: hidden;

  .ant-table-body {
    scrollbar-width: none;

    &::-webkit-scrollbar {
      display: none;
    }

    tr:last-child td {
      border-bottom: none;
    }
  }

  .custom-column-dropdown-menu {
    border: none;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    color: @grey-600;

    .ant-dropdown-menu {
      background-color: @white;
      border-color: @border-color;
    }

    .ant-dropdown-menu-item {
      padding-left: 0px;
      padding-right: 0px;
    }

    .ant-dropdown-menu-item:hover {
      background-color: @white;
      color: inherit;
    }
    svg {
      height: 24px;
    }
  }

  .pagination-container {
    border-top: 1px solid @border-color;
    padding: 16px 0;
  }
}

.custom-card-with-table {
  &.table-container {
    border: none;
    border-radius: 0px 0px @border-rad-sm @border-rad-sm;
  }
  .ant-table {
    table > tbody > tr:last-child > td {
      border-bottom: none;
    }
    tr > td:first-child.name-column {
      padding-left: 16px;
    }
  }
}
